1 How to build aMule with GeoIP support
3 The MaxMind GeoIP library can detect the country an IP adress comes from. aMule uses this information
4 to display a little country flag for each source or ed2k server.
5 Since this is an external library it is disabled by default. This is how to enable it:
7 Download the free GeoIP country database from http://www.maxmind.com/download/geoip/database/GeoIP.dat.gz
8 Put GeoIP.dat in the same folder as aMule.exe.
10 Download the free GeoIP C library from http://www.maxmind.com/download/geoip/api/c/GeoIP-1.4.4.tar.gz
11 From the folder libGeoIP take GeoIP.h and GeoIP.c and put them into "MSVC Solution\libs\libGeoIP".
12 Apply GeoIP.c.patch to GeoIP.c . If you don't have a patch tool, you can easily apply it by hand.
13 Just add the #defines to the beginning of the file and remove the 5 lines starting with #ifdef WIN32
16 In aMule's project settings C/C++/Preprocessor/Preprocessor Definitions add ;ENABLE_IP2COUNTRY
18 In the solution explorer right-click on aMule, select Project dependencies and check libGeoIP.
20 Rebuild aMule. That's it. :-)